package cn.xfdzx.android.apps.shop.sql;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

import io.reactivex.annotations.Nullable;


public class DatabaseHelper extends SQLiteOpenHelper {
    public static final String DB_NAME="search.db";
    private static final int VERSION=1;
    private static final String CREATE_TABLE_DOG="create table searchs(search_history text)";
    public DatabaseHelper(@Nullable Context context) {
        super(context, DB_NAME, null, VERSION);

    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL(CREATE_TABLE_DOG);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
